home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / unixstd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-09  |  1.9 KB  |  73 lines

  1. /* @(#)unixstd.h    1.3 98/10/09 Copyright 1996 J. Schilling */
  2. /*
  3.  *    Definitions for unix system interface
  4.  *
  5.  *    Copyright (c) 1996 J. Schilling
  6.  */
  7. /*
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2, or (at your option)
  11.  * any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef _UNIXSTD_H
  24. #define    _UNIXSTD_H
  25.  
  26. #ifndef    _MCONFIG_H
  27. #include <mconfig.h>
  28. #endif
  29.  
  30. #ifdef    HAVE_UNISTD_H
  31. #include <unistd.h>
  32.  
  33. #ifndef    _SC_PAGESIZE
  34. #ifdef    _SC_PAGE_SIZE    /* HP/UX & OSF */
  35. #define    _SC_PAGESIZE    _SC_PAGE_SIZE
  36. #endif
  37. #endif
  38.  
  39. #else    /* HAVE_UNISTD_H */
  40.  
  41. #endif    /* HAVE_UNISTD_H */
  42.  
  43. #ifndef    STDIN_FILENO
  44. #    ifdef    JOS
  45. #        include <jos_io.h>
  46. #    else
  47. #        define    STDIN_FILENO    0
  48. #        define    STDOUT_FILENO    1
  49. #        define    STDERR_FILENO    2
  50. #    endif
  51. #endif
  52.  
  53. #ifndef    R_OK
  54. /* Symbolic constants for the "access" routine: */
  55. #define    R_OK    4    /* Test for Read permission */
  56. #define    W_OK    2    /* Test for Write permission */
  57. #define    X_OK    1    /* Test for eXecute permission */
  58. #define    F_OK    0    /* Test for existence of File */
  59. #endif
  60.  
  61. /* Symbolic constants for the "lseek" routine: */
  62. #ifndef    SEEK_SET
  63. #define    SEEK_SET    0    /* Set file pointer to "offset" */
  64. #endif
  65. #ifndef    SEEK_CUR
  66. #define    SEEK_CUR    1    /* Set file pointer to current plus "offset" */
  67. #endif
  68. #ifndef    SEEK_END
  69. #define    SEEK_END    2    /* Set file pointer to EOF plus "offset" */
  70. #endif
  71.  
  72. #endif    /* _UNIXSTD_H */
  73.